<template>
  <h2>provice/inject使用</h2>
  <A></A>
</template>


<script setup>
import A from '@/components/A.vue'
import { provide, ref } from 'vue'

const title = ref('2302AAAA')
const getData = (res) => {
  console.log('res:', res)
}
//提供商
provide('gogo', title)
provide('getData', getData)

</script>

<style scoped lang="scss"></style>
